package com.gree.flowable.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gree.flowable.app.pojo.form.FlwFormNodeset;
import com.gree.flowable.app.pojo.form.FormBusiness;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author ：180849
 * @date ：Created in 2021/9/2 9:36
 * @description：表单与实例化单据关系表
 * @modified By：
 * @version: 1.0
 */
@Repository
public interface FormBusinessMapper extends BaseMapper<FormBusiness> {
    /**
     * 获取表单id
     * @param businessKey   审批单号
     * @return
     */
    @Select("select distinct form_id from form_business fb where fb.business_Key =#{businessKey}")
    @ResultType(String.class)
    String getFormId(@Param("businessKey") String businessKey);
}
